package top.ljlgithub.api.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import top.ljlgithub.api.bean.Role;
import top.ljlgithub.api.bean.TreeRole;

import java.util.List;

@Mapper
@Component
public interface RoleMapper {
    List<TreeRole> getTreeRole();
    List<String> getIds();
    void addRole(Role role);
    Role findRoleById(int id);
    void updateRole(Role role);
    void deleteRoleById(int id);
    void updateRight(String ids,int id);
    String findIdsById(int id);
    List<String> getAllRight();
    List<String> findUsernameById(int role_id);
}
